import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import '../assets/css/reset.scss'
import '../assets/js/hotcss.js'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/conduct',
    name: 'Conduct',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Conduct.vue')
  },
  {
    path: '/ious',
    name: 'Ious',
    component: () => import('../views/Ious.vue')
  },
  {
    path: '/raise',
    name: 'Raise',
    component: () => import('../views/Raise.vue')
  }
]

const router = new VueRouter({
  // 导航条全部添加了linkExactActiveClass，蛋疼，不知道怎么回事，先关掉吧
  linkExactActiveClass: false,
  routes
})

export default router
